package com.controller.order;

import com.client.DadaApiResponse;
import com.request.AddOrderReq;
import com.request.OrderCallbackReq;
import com.service.OrderCallbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 订单回调接口
 * @author zhang
 */
@RestController
public class OrderCallbackController {
    @Autowired
    private OrderCallbackService orderCallbackService;

    @PostMapping("/api/order/callback")
    public DadaApiResponse orderCallback(@RequestBody OrderCallbackReq orderCallbackReq) {
        return orderCallbackService.orderCallback(orderCallbackReq);
    }
}
